<%- include('../../common/header.html',{css:'common'}) %>
<%- include('../../common/script-validation.html') %>
<script type="application/xhtml+xml" id="form-dist-role-template">
    <form id="distRoleForm" class="form-horizontal">
        <div class="form-group">
            <label class="col-xs-3 control-label">姓名</label>
            <div class="col-xs-7">
                <input type="hidden" name="id" value="<$= typeof id !== 'undefined' ? id : '' $>" />
                <input type="text" class="form-control disabled" placeholder="姓名" name="password" disabled="disabled"
                       value="<$= name_ $>"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">角色</label>
            <div class="col-xs-7 role-list">
                <$
                    roles.forEach(function(item){
                    $>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="roles"  value="<$=item.id$>" /> <$=item.roleName $>
                    </label>
                <$    })
                $>

            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-9 col-xs-offset-3">
                <button type="submit" class="btn btn-primary"  value="提 交">提 交</button>
            </div>
        </div>
    </form>
</script>
<script type="application/xhtml+xml" id="form-update-password-template">
    <form id="updatePasswordForm" class="form-horizontal">
        <div class="form-group">

            <label class="col-xs-3 control-label">密码</label>
            <div class="col-xs-7">
                <input type="hidden" name="id" value="<$= typeof id !== 'undefined' ? id : '' $>" />
                <input type="password" class="form-control" placeholder="密码" name="password"
                       value=""/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">确认密码</label>
            <div class="col-xs-7">
                <input type="password" class="form-control" placeholder="确认密码" name="confirmPassword"
                       value=""/>

            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-9 col-xs-offset-3">
                <button type="submit" class="btn btn-primary"  value="提 交">提 交</button>
            </div>
        </div>
    </form>
</script>
<script type="application/xhtml+xml" id="form-template">
    <form id="registrationForm" class="form-horizontal">
        <div class="form-group">
            <label class="col-xs-3 control-label">姓名</label>
            <div class="col-xs-7">
                <input type="hidden" name="id" value="<$= typeof id !== 'undefined' ? id : '' $>" />
                <input type="text" class="form-control" name="name" placeholder="姓名"
                <$= name !== '' ? "disabled" : "" $>
                value="<$= name == '' ? '' : name $>" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">用户名</label>
            <div class="col-xs-7">
                <input type="text" class="form-control" placeholder="用户名" name="userName"
                       value="<$= typeof userName !== 'undefined' ? userName : '' $>"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">性别</label>
            <div class="col-xs-7">
                <label class="radio-inline">
                    <input type="radio" name="gender" <$= ((typeof gender !== 'undefined') ? (gender ==1?'checked':'') : '') $> value="1" /> 男
                </label>
                <label class="radio-inline">
                    <input type="radio" name="gender" <$= ((typeof gender !== 'undefined') ? (gender ==0?'checked':'') : '') $> value="0" /> 女
                </label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">QQ</label>
            <div class="col-xs-7">
                <input type="text" class="form-control" placeholder="运营人员必填QQ" name="qq"
                       value="<$= typeof qq !== 'undefined' ? qq : '' $>"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">手机号</label>
            <div class="col-xs-7">
                <input type="text" class="form-control" placeholder="手机号" name="phone"
                       value="<$= typeof phone !== 'undefined' ? phone : '' $>"/>
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-3 control-label">公司-部门</label>
            <div class="col-xs-4" style="padding-right: 0;">
                <select class="form-control" name="comid"></select>
            </div>
            <div class="col-xs-3" >
                <select class="form-control" name="depid" >
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-9 col-xs-offset-3">
                <button type="submit" class="btn btn-primary disabled"  disabled="disabled" value="提 交">提 交</button>
            </div>
        </div>
    </form>
</script>
<title>用户管理-后台管理系统</title>
</head>
<body class="sub-body">
<%- include('../../common/top-nav.html') %>
<%- include('../../common/page-title.html',{navs:[
{label:'首页',url:'../../main.html'},
{label:'系统管理',url:'javascript:void(0)'},
{label:'用户管理',url:'javascript:void(0)'},
]}) %>
<div class="content">
    <div class="panel panel-default">
        <div class="panel-body" style="height: 52px;">
            <div class="toolbar">
                <div class="pull-right">
                </div>
            </div>
        </div>
        <div class="table-responsive">
            <table class="table table-bordered table-hover">
            </table>
        </div>
        <div class="su-pager text-right"></div>
    </div>
</div>
<%- include('../../common/footer.html') %>
</body>
<!-- build:js ../../scripts/sys/user-jxc/uindex.ba.jsx.js  -->
<script type="text/javascript" src="./../../../libs/q.js"></script>
<script type="text/javascript" src="./../../../libs/md5/md5.js"></script>
<script type="text/javascript" src="./index.js"></script>
<!-- endbuild -->

</html>